package com.neusoft.hifly.information.article.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import com.neusoft.hifly.core.utils.GlobalConstants;

/**
 * Title: 文章资讯服务
 * <p>
 * Description: 文章与栏目关联对象
 * <p>
 * Copyright: 2019
 * <p>
 * Company: 东软汉枫
 *
 * @author lh_neu
 * @version 1.0.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName(value = GlobalConstants.DYNAMIC_TABLE_NAME_PREFIX + "_INFO_ART2COL")
public class ArtToColObj implements Serializable {
	private static final long serialVersionUID = -158218593348119L;
	// 租户逻辑ID
	@TableField(value = "ORGAN_LOGIC_ID")
	private long organLogicId;
	// 文章逻辑ID
	@TableId(value = "ARTICLE_LOGIC_ID")
	private long articleLogicId;
	// 栏目逻辑ID
	@TableField(value = "COLUMN_LOGIC_ID")
	private long columnLogicId;
	// 文章排序
	@TableField(value = "ARTICLE_ORDER")
	private int articleOrder;

	/**
	 * 默认构造方法
	 */
	public ArtToColObj() {
	}

	/**
	 * 构造方法
	 *
	 * @param organLogicId
	 *            租户逻辑ID
	 * @param articleLogicId
	 *            文章逻辑ID
	 * @param columnLogicId
	 *            栏目逻辑ID
	 * @param articleOrder
	 *            文章排序
	 */
	public ArtToColObj(final long organLogicId, final long articleLogicId, final long columnLogicId,
			final int articleOrder) {
		super();
		this.organLogicId = organLogicId;
		this.articleLogicId = articleLogicId;
		this.columnLogicId = columnLogicId;
		this.articleOrder = articleOrder;
	}

	public long getOrganLogicId() {
		return organLogicId;
	}

	public void setOrganLogicId(final long organLogicId) {
		this.organLogicId = organLogicId;
	}

	public long getArticleLogicId() {
		return articleLogicId;
	}

	public void setArticleLogicId(final long articleLogicId) {
		this.articleLogicId = articleLogicId;
	}

	public long getColumnLogicId() {
		return columnLogicId;
	}

	public void setColumnLogicId(final long columnLogicId) {
		this.columnLogicId = columnLogicId;
	}

	public int getArticleOrder() {
		return articleOrder;
	}

	public void setArticleOrder(final int articleOrder) {
		this.articleOrder = articleOrder;
	}
}